{% extends 'base.html' %}

{% block breadcrumb %}
<li class="breadcrumb-item active"><a href="{% url 'home' %}" >首页</a></li>
{% endblock %}

{% block content %}
  <table class="table">
    <thead class="thead-inverse">
      <tr>
        <th>任务</th>
        <th>分数</th>
        <th>状态</th>
      </tr>
    </thead>
    <tbody>
      {% for task in latest_task_list %}
        <tr>
          <td>
            <a href="{% url 'Tasks:detail' task.pk %}">{{ task.name }}</a>
          </td>
          <td class="align-middle">{{ task.point }}</td>
          <td class="align-middle">{{ task.status }} </td>
        </tr>
      {% endfor %}
    </tbody>
  </table>
{% endblock %}
